﻿@using BookShop.DTO
@using BookShop.Library.Constant
<!-- BEGIN SIDEBAR -->
<div class="sidebar col-md-3 col-sm-3">
    <ul class="list-group margin-bottom-25 sidebar-menu">
        @if (Session[SessionKey.Customer] == null)
        {
            <li class="list-group-item clearfix dropdown  active">
                <a href="#" class="collapsed"><i class="fa fa-angle-right"></i>Đăng nhập/Đăng ký</a>
                <ul class="dropdown-menu" style="display: block;">
                    <li class="list-group-item clearfix"><a href="@Url.Action("Login", "Account")">Đăng nhập</a></li>
                    <li class="list-group-item clearfix"><a href="@Url.Action("SignUp", "Account")">Đăng ký</a></li>
                </ul>
            </li>
        }
        else
        {
            var customer = (Customer)Session[SessionKey.Customer];
            <li class="list-group-item clearfix dropdown  active">
                <a href="@Url.Action("Index", "Account")" class="collapsed"><i class="fa fa-angle-right"></i>Tài khoản của tôi</a>
                <ul class="dropdown-menu" style="display: block;">
                    <li class="list-group-item clearfix"><a href="@Url.Action("PersonalInfomation", "Account", new { customerId = customer.Id })">Thông tin cá nhân</a></li>
                    <li class="list-group-item clearfix"><a href="@Url.Action("OrderHistory", "Account", new { customerId = customer.Id })">Danh mục đơn hàng</a></li>
                </ul>
            </li>
        }
    </ul>
</div>
<!-- END SIDEBAR -->
